/**
 * ButtonRenderer.java
 * @author: liuex
 * 2007-12-26 ����08:04:00
 *
 * note: 
 */
package org.lex.ftp.ui.prefs;

import java.awt.Component;

import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;

public class LabelRenderer extends JLabel implements TableCellRenderer {
	public LabelRenderer() {
		super();
		this.setOpaque(true);
		this.setHorizontalAlignment(JLabel.CENTER);
	}

	@Override
	public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
		this.setText(String.valueOf(value));
		return this;
	}
}
